﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace HCFramework.Product.Detail.Control
{
    public partial class CommonInfo : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        public void BindData(API.LINQ.Product product)
        {
            litFinalPrice.Text = product.Price.ToString("N0");
            litPrice.Text = (product.Price - 10 * product.Price / 100).ToString("N0");
            litProductName.Text = product.ProductName;
            litUpdateDate.Text = product.LastEditDate.ToString("dd/MM/yyyy");
            litVAT.Text = (product.Price * 10 / 100).ToString("N0");
        }
    }
}